package com.edvinli.service.impl;

import com.edvinli.entity.EmpLog;
import com.edvinli.mapper.EmpLogMapper;
import com.edvinli.service.EmpLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Slf4j
@Service
public class EmpLogServiceImpl implements EmpLogService {
    @Autowired
    private EmpLogMapper empLogMapper;

    @Transactional
    @Override
    public void insertLog(EmpLog empLog){
        empLogMapper.insert(empLog);
    }
}
